package com.yashi.service;

import com.yashi.entity.TbAdmin;

public interface AdminService {

	/**
	 * 管理员登录
	 * @param admin
	 * @return
	 * @throws Exception
	 */
	TbAdmin findAdminByName(TbAdmin admin)throws Exception;

	/**
	 * 增加管理员
	 * @param userId
	 * @return
	 */
	TbAdmin addAdmin(TbAdmin admin,String userId);
}
